package com.feituan.core.persistence.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feituan.core.pojo.entity.Order;
import com.feituan.core.pojo.request.OrderPageReq;
import com.feituan.core.pojo.response.page.PageData;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaohu
 * @since 2024-05-09
 */
public interface IOrderService extends IService<Order> {
    PageData<Order> queryPage(OrderPageReq pageReq);

    Order getBySn(String sn);

    List<Order> findByUser(Long userId,Integer type, Long lastId,Integer orderStatus);
}
